home *** CD-ROM | disk | FTP | other *** search
/ SPACE 1 / SPACE - Library 1 - Volume 1.iso / program / 70 / examples / examples.arc / COND.ST < prev    next >
Text File  |  1985-11-20  |  199b  |  11 lines

  1. Class Main
  2. [
  3.     main            | i |
  4.         ((2 < 3) ifTrue: ['correct']) print.
  5.         (2 < 3) ifTrue: ['correct' print ].
  6.         i <- 1.
  7.         [i < 3] whileTrue: [i <- i + 1].
  8.         (i >= 3) ifTrue: ['correct' print]
  9. ]
  10.  
  11.